﻿<Window x:Class="Brjnk.GpxExplorer.UI.TimeCorrectionWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:loc="clr-namespace:Brjnk.GpxExplorer.Localization"
        Title="{loc:Loc titleTimeCorrection}" MinWidth="300"
        FocusManager.FocusedElement="{Binding ElementName=txbInput}"
        SizeToContent="WidthAndHeight" ResizeMode="NoResize">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>

        <TextBlock Grid.Row="0" Grid.ColumnSpan="2" Text="{loc:Loc timeCorrectionMessage}" />
        <TextBox Name="txbInput" Text="{Binding TimeCorrection}" Grid.Row="1" Grid.ColumnSpan="2" />
        <Button IsCancel="True" Grid.Row="2" HorizontalAlignment="Right" Content="{loc:Loc cancel}" Click="Button_Click" />
        <Button IsDefault="True" Grid.Row="2"  Grid.Column="1" HorizontalAlignment="Right" Content="{loc:Loc ok}" Click="Button_Click_1" Name="okButton" />
    </Grid>
</Window>